<div class="row-fluid sortable">	
	<div class="box span6" style="width:100%">
		<div class="box-header well" data-original-title>
			<h2>乘客列表</h2>
			<div class="box-icon">
			</div>
		</div>
		<div class="box-content">
			<table class="table table-bordered">
				  <thead>
					  <tr>
						  <th>用户名</th>
						  <th>真实姓名</th>
						  <th>密码</th>
						  <th>电话</th>
						  <th>状态</th>
						  <th>操作</th>                                    
					  </tr>
				  </thead>   
				  <tbody>
					<% if(page && page.data){ %>
						<%  page.data.forEach(function(user){ %> 
							<tr>
								<td><%=user.username %></td>
								<td class="center"><%=user.realname %></td>
								<td class="center"><%=user.password %></td>
								<td class="center"><%=user.phone %></td>
								<td class="center">
									<% if(user.status==0){ %><span class="label label-error">未验证 <%}else{%><span class="label label-success">已验证<%}%></span>
								</td>
								<td class="center">
								 <% if(user.canuse==0){ %>
									<a id="canuse" class="btn btn-info" href="javaScript:check('<%=user.id %>')">已禁用</a>
								 <%}else{%>
								 	<a id="canuse" class="btn btn-success" href="javaScript:check('<%=user.id %>')">已启用</a>
								 <%}%>
								<a class="btn btn-danger" href="<%=server.site%>admin/orderform/orderform_list/<%=user.id %>/0">
									订单记录
								</a>
								</td>
							</tr>
						<% }) %>
					<% } %>                             
				  </tbody>
			 </table>  
			 <form  id="pageform" action="<%=server.site%>admin/passenger/list" method="post">
			 	<%- include ../../common/page.ejs %>
			 </form> 
		</div>
	</div>
</div>
